from comm.action import *
from base.home_object import Home_Object


class Home_Page(Home_Object, CommonDriver):
    @classmethod
    def research_flipper_textview_click(self, driver):
        research_flipper_textview = self.research_flipper_textview()
        return self.click_new(driver, AppiumBy.XPATH, research_flipper_textview)

    @classmethod
    def et_search_send_keys(self, driver):
        et_search = self.et_search()
        return self.send_keys_new(driver, AppiumBy.XPATH, et_search, '杨总牛逼')

    # 组装操作
    @classmethod
    def send_setup(self, driver):
        self.research_flipper_textview_click(driver)
        self.et_search_send_keys(driver)